export default defineAppConfig({
  pages: [
    'pages/home/index',
    'pages/contrast/index',
    'pages/contrast/category/index',
    'pages/contrast/detail/index',
    'pages/appointment/index',
    'pages/appointment/detail/index',
    'pages/user/index',
    'pages/goods/detail/index',
    'pages/activity/index',
    'pages/login/index',
    'pages/webview/index',
    'pages/404/index',
  ],
  subPackages: [
    {
      root: 'subPages',
      pages: [
        'search/index',
        'cart/index',
        'shop/list',
        'shop/list-vip',
        'order/index',
        'appoint/index',
        'order/detail/index',
        'order/submit/index',
        'order/result/index',
        'order/refound/index',
        'order/refoundSubmit/index',
        'service/list/index',
        'service/category/index',
        'service/submit/index',
        'service/result/index',
        'service/search/index',
        'receiver/index',
        'vipCardDetail/index',
        'vipCardDetail/detail',
        'vipCardDetail/vipcardCode',
        'myActivity/index',
        'myActivity/detail/index',
        'oldCard/index',
        'oldCard/authCard/index',
        'oldCard/bindOldCard/index',
        'oldCard/familyCard/index',
        'address/index',
        'address/addAddress/index',
        'setting/index',
        'miaosha/index',
        'miaosha/detail/index',
        'miaosha/submit/index',
        'serviceHelp/index',
        'youhui/index',
        'agreement/index',
      ],
    },
  ],
  permission: {
    'scope.userLocation': {
      desc: '你的位置信息将用于小程序位置接口的效果展示', // 高速公路行驶持续后台定位
    },
  },
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'black',
  },
  tabBar: {
    color: '#333333',
    selectedColor: '#333333',
    list: [
      {
        pagePath: 'pages/home/index',
        text: '推荐',
        iconPath: './assets/images/tabbar/home.png',
        selectedIconPath: './assets/images/tabbar/home_select.png',
      },
      {
        pagePath: 'pages/appointment/index',
        text: '预约',
        iconPath: './assets/images/tabbar/appointment.png',
        selectedIconPath: './assets/images/tabbar/appointment_select.png',
      },
      {
        pagePath: 'pages/contrast/index',
        text: '比价',
        iconPath: './assets/images/tabbar/contrast.png',
        selectedIconPath: './assets/images/tabbar/contrast_select.png',
      },
      {
        pagePath: 'pages/user/index',
        text: '我的',
        iconPath: './assets/images/tabbar/user.png',
        selectedIconPath: './assets/images/tabbar/user_select.png',
      },
    ],
  },
});
